package gmusic.ma.bo;

import gmusic.bo.TrackBean;

import java.sql.ResultSet;
import java.sql.SQLException;

public class TrackMABean extends TrackBean {

	public TrackMABean() {
	}

	public TrackMABean(long maid, long releaseMaid, int discNum, String nom,
			int duree, int numero) {
		super();
		setMaid(maid);
		setReleaseMaid(releaseMaid);
		setDisc(discNum);
		setNom(nom);
		setDuree(duree);
		setNumero(numero);
	}

	public TrackMABean(ResultSet rs) throws SQLException {
		setMaid(rs.getLong("maid"));
		setReleaseMaid(rs.getLong("release_maid"));
		setDisc(rs.getInt("disc"));
		setNumero(rs.getInt("num"));
		setNom(rs.getString("nom"));
		setDuree(rs.getInt("duree"));
		setLyrics(rs.getString("lyric"));
	}

	public String toString() {
		return super.toString();
	}
}
